/**
 * 参数常用格式化
 */
export const pushShow = (dataList, id) => {
    const index = dataList.findIndex((x) => x.id == id)
    if (index == -1) {
      dataList.push({
        id: id,
      })
    }
  }
  export const isShow = (dataList, id) => {
    const index = dataList.findIndex((x) => x.id == id)
    if (index != -1) {
      return true
    }
  }
  export const removeShow = (dataList, id) => {
    const index = dataList.findIndex((x) => x.id == id)
    if (index != -1) {
      dataList.splice(index, 1)
    }
  }
  